namespace Ds.DataBase.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class _20200815004 : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.BeiKaoHeJiaoZhiGongs", "Users_userinfoId", "dbo.UserInfoes");
            DropIndex("dbo.BeiKaoHeJiaoZhiGongs", new[] { "Users_userinfoId" });
            DropColumn("dbo.BeiKaoHeJiaoZhiGongs", "Users_userinfoId");
        }
        
        public override void Down()
        {
            AddColumn("dbo.BeiKaoHeJiaoZhiGongs", "Users_userinfoId", c => c.Guid());
            CreateIndex("dbo.BeiKaoHeJiaoZhiGongs", "Users_userinfoId");
            AddForeignKey("dbo.BeiKaoHeJiaoZhiGongs", "Users_userinfoId", "dbo.UserInfoes", "userinfoId");
        }
    }
}
